<script setup lang="ts">
import { onLaunch, onShow, onHide, onShareAppMessage } from "@dcloudio/uni-app";
import { componentsStore } from '@/store/modules/components'
const store = componentsStore()
import routingIntercept from '@/utils/prission'
uni.$on('showLoading', (flag) => {
  store.loadingFn_(flag)
})
onLaunch(() => {
  store.APIHTTPS()
  //#// #ifdef MP-WEIXIN
  routingIntercept() //路由拦截
  store.uload_load()
  // #endif
})
onShow(() => {
  const page = getCurrentPages()
  //#ifdef MP-WEIXIN
  uni.showShareMenu({
    withShareTicket: true,
    menus: ["shareAppMessage", "shareTimeline"],
  })
  // #endif


});
onHide(() => {
  console.log("App Hide");
});

</script>
<style lang="scss">
@import "uview-plus/index.scss";
@import "./static/common.css";

image {
  width: 100%;
  height: 100%;
}

page {
  background: #F7F7F7;
  font-size: 28rpx;
  color: #0E0E0E;
  font-weight: 400;
  font-family: PingFangSC-Semibold, PingFang SC;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}

.status_bar {
  height: var(--status-bar-height);
  width: 100%;
}
</style>
